﻿using System.Data.Entity.ModelConfiguration;

namespace Home.Domain.Entities.Mapping
{
    public class PNewsMap : EntityTypeConfiguration<PNews>
    {
        public PNewsMap()
        {
            Property(t => t.Title)
                .IsRequired()
                .HasMaxLength(64);
        }
    }
}
